Skip to content

feat: port test_conversions to CTS#38

Merged
legendecas merged 8 commits intonodejs:mainfrom
bavulapati:feat/port-test-conversions
Apr 11, 2026
Merged

feat: port test_conversions to CTS#38
legendecas merged 8 commits intonodejs:mainfrom
bavulapati:feat/port-test-conversions

Conversation

@bavulapati
Copy link
Copy Markdown
Contributor

Ports test_conversions from the Node.js test suite to the CTS.

@bavulapati
Copy link
Copy Markdown
Contributor Author

Most of the files are identical to the original source.

@kraenhansen
Copy link
Copy Markdown
Member

Reviewed: C files are verbatim copies of upstream, CMakeLists.txt correctly lists both sources, all upstream test cases preserved, all assert methods used are available in CTS. "use strict" tracked in #41.

@bavulapati
Copy link
Copy Markdown
Contributor Author

@kraenhansen Do you have any opinion on "use strict"?

@kraenhansen
Copy link
Copy Markdown
Member

@bavulapati I think it's redundant but also in alignment with what I've already merged. Let's keep it as-is and then update in bulk later 👍

@bavulapati bavulapati force-pushed the feat/port-test-conversions branch from a510746 to 2da801e Compare April 9, 2026 03:35
bavulapati and others added 6 commits April 9, 2026 09:58
Ports
[test_conversions](https://github.com/nodejs/node/tree/main/test/js-native-api/test_conversions)
from the Node.js test suite to the CTS.

Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Exercises napi_define_class with method, data value, accessor, and
static property descriptors. Includes null-argument tests for
napi_define_class via test_null.c/test_null.js.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
@bavulapati bavulapati force-pushed the feat/port-test-conversions branch from c3ece25 to 9ef3fee Compare April 9, 2026 04:30
@bavulapati bavulapati requested a review from legendecas April 9, 2026 04:31
@legendecas legendecas merged commit 7215caf into nodejs:main Apr 11, 2026
13 checks passed
@github-project-automation github-project-automation bot moved this from Need Triage to Done in Node-API Team Project Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants